package cate.common.table.res.furniturecall.sheet;

import cate.common.table.ESheet;
import cate.common.table.res.furniturecall.row.FurnitureGainRow;

public class FurnitureGainSheet extends ESheet<FurnitureGainRow> {
    private int maxCnt;

    @Override
    public String getSheetName() {
        return "盲盒开启阶段奖励";
    }

    @Override
    public void onLoaded(){
        int max = 0;
        for (FurnitureGainRow cg : getList()) {
            if (cg.cnt > max) {
                max = cg.cnt;
            }
        }
        maxCnt = max;
    }

    public int getMaxCnt(){
        return this.maxCnt;
    }
}
